Selecting menu for template &quot;{$template->get_name()}&quot;